<%-- 
    Document   : Login
    Created on : Dec 2, 2012, 12:12:34 PM
    Author     : Gary
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <link href="<c:url value='/css/tablecss.css'/>" rel="stylesheet" type="text/css"/>
        <title>Home</title>

        <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
        <script>    
            $(document).ready(function(){   
                $("#loginbtn").button();
                $("#resetbtn").button();
            });
        </script>
        <title>User Login</title>

    </head>

    <body class="body">
        <jsp:include page="Header.jsp" />
        <s:actionerror/>

        <div class="maindiv">

            <fieldset class="loginmanfieldset">
                <legend class="mainLegend">Please Log In Here</legend>
                <div class="globalTb" id="logindiv">
                    <s:form namespace="/public" action="login.action" focusElement="username" theme="simple">
                        
                        <div class="error"><s:fielderror><s:param>login</s:param></s:fielderror>
                        </div>
                        
                        <table id="logintbl">
                            <tr><td colspan="2" id="loginheader">Please Log In Here</td></tr>
                                    <tr> 
                                        <td>User Name</td>

                                <td ><s:textfield name="username" size="40" maxlength="40"/>
                                    <s:fielderror><s:param>username</s:param></s:fielderror>
                                        </td>
                                    </tr>
                                
                                    <tr>
                                        <td>Password</td>

                                <td ><s:password name="password" size="40" maxlength="40"/>
                                    <s:fielderror><s:param>password</s:param></s:fielderror>
                                        </td>
                                    </tr>
                              
                                    <tr>
                                        <td></td>
                                        <td align="center" >
                                   <input type="submit" id="loginbtn" value="Log In" align="middle" class="aLinkbutton" />
                               
                                   <input type="submit" id="resetbtn" value="Reset" align="middle" class="aLinkbutton"/>
                                </td>
                            </tr>
                           
                        </table>
                    </s:form>   
                </div>
            </fieldset>

        </div>

        <div class="footerdiv">
            <jsp:include page="Footer.jsp" /></div>

    </body>
</html>
